# All paths are relative to the directory containing this file.

<% if @cogfile_type == :plugin %>
stamp_generator do |name, dest|
  @name = name
  stamp '<%= @plugin_name %>/generator.rb', dest, :absolute_destination => true
end

autoload_plugin :<%= @plugin_module %>, 'lib/<%= @plugin_name %>'

<% end %>
<% if @cogfile_type == :project %>
# Define the directory to which code is generated
project_path 'lib'

<% end %>
# Define a directory in which to find generators
generator_path '<%= @prefix %>generators'

# Define a directory in which to find templates
template_path '<%= @prefix %>templates'

<% unless @cogfile_type == :plugin %>
# Define a directory in which to find plugins
plugin_path '<%= @prefix %>plugins'

<% end %>
<% if @cogfile_type == :project %>
# Explicitly specify a mapping from file extensions to languages
#
# key => value pairs from this mapping will override the default
# language map supplied by +cog+
#
# Type `cog language list` to see a list of supported languages
# and the current file extension mappings
language_extensions({
  :h => 'c++',
})

<% end %>
